<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
</head>

<body>
<div>
	<div id="content" class="clear">
    <div align="center" style="font-size: 14px;padding-top: 200px">
    	<?php echo Form::hidden('timeEle',$expire_time, array('id'=>'timeEle'));?>
    	<?php echo Form::label('msg',$message.'<br>',array('style'=>'color:red'));?>
		<span id="tip" style="color:#cc0000"></span>&nbsp;<?php echo Html::anchor($redirectUrl,'秒后自动跳转到相关页面', array('id'=>'redirectUrl'));?>
	</div>
	</div>
</div>

<script language="javascript">   
var timeEle = document.getElementById("timeEle");
if(timeEle!=null){
	var  i = timeEle.value;     
	function myclock(){       
		document.getElementById("tip").innerHTML = i;   
		if(i>0)   
			setTimeout("myclock();",1000);   
		else {
			var url = document.getElementById("redirectUrl").href;
			if (url.indexOf('Admin/login')>-1){
				window.parent.location = url;
		    } 
			else {   
			    window.location= document.getElementById("redirectUrl").href;
			}  
		}     
		i--;   
	}  
	myclock();
}
</script>
</body>
</html>



